how to Create and Append Element in JavaScript